<template>
  <div>
    <el-row class="module" v-for="item in list" :key="item.id" type="flex" @click.native="$router.push('/details?id='+item.id)">
        <el-row class="row1 el-col el-col-8">
        <div>
          <img :src="item.image" alt="" />
        </div>
      </el-row>

      <el-row class="row2 el-col el-col-16">
        <div>
        <h2>{{ item.title }}</h2>
        <p>{{ item.desc }}</p>
        </div>
      </el-row>
  
      
    </el-row>
  </div>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      default: [],
    },
  },
};
</script>

<style lang="less" scoped>
/deep/ .module {
     margin: 15px 0;
    border: 1px solid #ddd;
    padding: 10px 0;
    box-sizing: border-box;
  .row1 {
    // height: 200px;
    line-height: 38px;
    border-right: 1px solid #ddd;
      text-align: center;
    div {
      width: 180px;
      height: 180px;
      display: inline-block;
      vertical-align: middle;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }
  .row2{
    text-align: center;
    line-height: 38px;
  }
}
</style>